package com.binfenhulian.chinaenergy.ces.manage.core.db.dao.def;

import com.binfenhulian.chinaenergy.ces.manage.core.db.po.def.AccountPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 管理员 dao类
 */
@Mapper
@Repository
public interface IAccountDao {

    AccountPO selectById(@Param(value = "id") int id);

    AccountPO selectByMobile(@Param(value = "mobile") String mobile);

    List<AccountPO> selectAll();

    int deleteById(@Param(value = "id") int id);

    int update(AccountPO account);

    int insert(AccountPO account);
}
